

<template>
  <div>
    <h1>App</h1>
    <p>{{ num }}}</p>
    <button @click="num++">点我修改数据</button>
    <hr />
    <Count @add="addCall" :num="num" />
  </div>
</template>

<script>
import Count from "./components/Count";

export default {
  name: "App",
  data() {
    return {
      num: 0,
    };
  },
  components: {
    Count,
  },
  methods: {
    addCall() {

    },
  },
};
</script>

<style scoped>
/* scoped  当前文件可以使用*/
</style>

